package cn.tedu.ai.config;



import cn.tedu.ai.entity.RoleContent;
import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import lombok.Data;
import okhttp3.*;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import java.net.MalformedURLException;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.text.SimpleDateFormat;
import java.util.*;

@Configuration
@Data
public class AiChatConfig {
    @Value("${xunfei.ai.hostUrl}")
    public  String  hostUrl;
    @Value("${xunfei.ai.appId}")
    public   String appId;
    @Value("${xunfei.ai.apiSecret}")
    public   String apiSecret;
    @Value("${xunfei.ai.apiKey}")
    public  String apiKey;

}
